<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>商品首页</title>
<script type="text/javascript" src="js/jquery-3.1.0.min.js"></script>
<script type="text/javascript" src="js/amazeui.min.js"></script>
<script type="text/javascript" src="js/myfun.js"></script>
<meta name="keywords" content="table">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="i/favicon.png">
<link rel="apple-touch-icon-precomposed" href="i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI" />
<link rel="stylesheet" href="css/amazeui.min.css" />
<link rel="stylesheet" href="css/admin.css">
</head>
<body>
	<!-- <div class="am-modal am-modal-prompt" tabindex="-1" id="my-prompt">
  <div class="am-modal-dialog">
  <form id="uploadform" enctype="multipart/form-data" action="/addgoods" method="post">
    <div class="am-modal-hd">--添加商品--</div>
    <div class="am-modal-bd">
    	
      商品名称<input type="text" name="gname" class="am-modal-prompt-input">
      商品描述<input type="text" name="gdespriction" class="am-modal-prompt-input">
      商品价格<input type="text" name="gprice" class="am-modal-prompt-input">
      商品数量<input type="text" name="gnum" class="am-modal-prompt-input">
      商品日期<input type="text" class="am-modal-prompt-input">
      商品图片<input type="file" name="gimage" class="am-modal-prompt-input">    
    </div>
    <div class="am-modal-footer">
      <span class="am-modal-btn data-am-modal-cancel">取消</span>
      <span class="am-modal-btn data-am-modal-confirm">提交</span>
      <input type="submit" id="tijiao" class="am-modal-btn" value="提交"/>
    </div>
    </form>
  </div>
</div> -->

	<div class="admin-content">
		<div class="admin-content-body">
			<div class="am-cf am-padding am-padding-bottom-0">
				<div class="am-fl am-cf">
					<strong class="am-text-primary am-text-lg">商品表单</strong><small>--游戏物品</small>
				</div>
			</div>

			<hr>

			<div class="am-g">
				<div class="am-u-sm-12 am-u-md-6">
					<div class="am-btn-toolbar">
						<div class="am-btn-group am-btn-group-xs prebutton">
							<a type="button" class="am-btn am-btn-default addgoods"
								id="addGoods" href="/addgoods"><span class="am-icon-plus"></span>新增</a>
							<a type="button" class="am-btn am-btn-default addgoods"><span
								class="am-icon-trash-o"></span>批量删除</a>
						</div>
					</div>
				</div>
				<div class="am-u-sm-12 am-u-md-3">
					<div class="am-form-group">
						<select data-am-selected="{btnSize: 'sm'}">
							<option value="option1">所有类别</option>
							<option value="option2">IT业界</option>
						</select>
					</div>
				</div>
				<div class="am-u-sm-12 am-u-md-3">
					<div class="am-input-group am-input-group-sm">
						<input type="text" class="am-form-field"> <span
							class="am-input-group-btn">
							<button class="am-btn am-btn-default" type="button">搜索</button>
						</span>
					</div>
				</div>
			</div>

			<div class="am-g">
				<div class="am-u-sm-12">
					<table id="goodtable"
						class="am-table am-table-striped am-table-hover table-mai optable">
						<thead>
							<tr>
								<th class="table-check"><input type="checkbox" /></th>
								<th class="table-id">图片</th>
								<!-- <th class="table-id">序号</th> -->
								<th class="table-title">编号</th>
								<th class="table-type">名称</th>
								<th class="table-author am-hide-sm-only">描述</th>
								<th class="table-date am-hide-sm-only">价格</th>
								<th class="table-date am-hide-sm-only">数量</th>
								<th class="table-date am-hide-sm-only">入库日期</th>
								<th class="table-set">操作</th>
							</tr>
						</thead>
						<tbody id="goodlist">
						</tbody>
					</table>
					<div class="am-cf">
						<p id="count"></p>
						<div id="fenye" class="am-fr"></div>
					</div>
					<hr />
				</div>

			</div>
		</div>
		<div class="am-g" id="editgoods" style="display:none">
			<div class="am-u-sm-12">
				<form class="am-form" action="/toedit" method="post"
					enctype="multipart/form-data">
					<fieldset>
						<legend>游戏商品--商品编辑</legend>
						<div class="am-form-group">
							<label for="doc-ipt-email-1">商品名称</label>
							 <input type="hidden" name="id">
							 <input type="text"
								name="gname">
						</div>
						<div class="am-form-group">
							<label for="doc-ipt-email-1">商品描述</label> <input type="text"
								name="gdespriction">
						</div>
						<div class="am-form-group">
							<label for="doc-ipt-email-1">商品价格</label> <input type="text"
								name="gprice">
						</div>
						<div class="am-form-group">
							<label for="doc-ipt-pwd-1">商品数量</label> <input type="text"
								name="gnum">
						</div>
						<div class="am-form-group">
							<label for="doc-ipt-email-1">上传商品图片</label> <input type="file"
								name="gimage">
						</div>
						<p>
							<input type="submit" class="am-btn am-btn-default" value="提交">
							<input
								type="reset" class="am-btn am-btn-default" value="重置">
						</p>
						
					</fieldset>
				</form>
			</div>
		</div>
</body>
</html>